package com.erp.produce.dao;

import com.erp.produce.entity.ProductionTechnology;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProductionTechnologyDao extends JpaRepository<ProductionTechnology,Long>{
    public List<ProductionTechnology> findByGoodsId(Long goodId);

    List<ProductionTechnology> findAllByGoodsNameLike(Pageable pageable,String goodsName);

    ProductionTechnology findFirstByName(String name);
}
